//
//  BGVisitDeTailPriceView.m
//  bigMall
//
//  Created by LTOVE on 16/8/5.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGVisitDeTailPriceView.h"

@implementation BGVisitDeTailPriceView


+ (UIView *)initVisitViewWithCellHeigh:(CGFloat)cellHeigh 
{
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, screenW, BGButtonCellHeigh)];
    view.backgroundColor = dockwhite_;//分割线颜色
    //创建内容视图
    UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, screenW, BGButtonCellHeigh - BGMaginButtom)];
    contentView.backgroundColor = [UIColor whiteColor];
    //内容视图添加label
    UILabel *label = [UILabel new];
    label.text = @"查看阶梯价格";
    label.textColor = textBlackColor;
    label.font = Font30;
    [label sizeToFit];
    label.x = BGMaginLeft;
    label.centerY = contentView.height * 0.5;
    [contentView addSubview:label];
    //内容视图添加箭头图标
    UIImageView *imgView = [UIImageView new];
    imgView.size = MidIconImgSIze;
#warning 设置右箭头图标   等待素材
//    imgView.image = [UIImage imageWithColor:[UIColor redColor] size:imgView.size];
//    imgView.image = [UIImage imageNamed:@"jiantou"];
    imgView.center = CGPointMake(screenW - BGMaginRight - imgView.width * 0.5, contentView.height * 0.5);
    [contentView addSubview:imgView];
    [view addSubview:contentView];
    return view;
}
@end
